# -*- coding: utf -8 -*-
# autor: teste
# data : teste
# obs: primeiro progama realizado em Python

import random  

#print type(1), type(3.4) , type((3+3j) + 2)
#print type ( "treta") , type ( True and False)
#a = '1'
#b = 'uma'
#print type(a) , type (b)
#print type([1,2,3,[2, 3]]), type ((1,2,3))

#class Teste:
#	pass

#print type(Teste)

#obj = Teste()
#print type(obj)

#def func():
#	return 3
	
#print type(func)

#print type ( range(0,10))
#print range (0,10)
#print type (xrange(0,10))
#print  (xrange(0,10))
#print type ( a > 10 if 10 else 2 )
#print type (a) == type ("string") if "uma string" else "nao sei"

#c = 1
#d = 3+2j
#f = c + d
#print type(f)

l1 = []
def varianciaRand100():
	soma = 0
	for i in range (0 ,101):		
		l1.append(int(random.random()*100))
		soma += (random.random()*100)
		
	media =  soma / len(l1)
	var = 0
	for i in l1:
		var += (l1[i] - media ) ** 2
		
	return var  / len (l1)
		
print varianciaRand100()



